package com.woniu.controller;

import com.woniu.entity.Result;
import com.woniu.pojo.ThirdConfiguration;
import com.woniu.service.ThirdConfigurationService;
import com.woniu.utils.BaseController;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/thirdconfiguration")
public class ThirdConfigurationController extends BaseController {
    @Autowired
    private ThirdConfigurationService thirdConfigurationService;
    @ApiOperation("保存第三方参数设置")
    @PostMapping
   public Result save(@RequestBody ThirdConfiguration thirdConfiguration){
         boolean row = thirdConfigurationService.save(thirdConfiguration);
             return new Result(200,"保存第三方参数设置成功",row);
    }
}
